package maven.demo3;

public class TestPerson {
    public static void main(String[] args) {
//        // 1. 直接实用类
//        Chinese p = new Chinese();
//        American p2 = new American();

        // 2. 使用多态
//        Person p = new Chinese();
//        Person p2 = new American();

        // 3. 抽象类
        APerson p = new Chinese();
        APerson p2 = new American();
        p.say();
        p2.say();
    }
}
